package io.renren.modules.jk;

import io.renren.common.oshi.SystemHardwareInfo;
import io.renren.common.utils.R;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 小坏
 * @Date 2020/9/15 17:00
 * @Version 1.0
 * @program: 父工程 renren 万物起源之地
 */

@RestController
@RequestMapping("/sys/jk")
public class JkController {



    @GetMapping("/getCpu")
    public R getCpu() {
        SystemHardwareInfo systemHardwareInfo = new SystemHardwareInfo();
        systemHardwareInfo.copyTo();
        return R.ok().put("list", systemHardwareInfo);
    }

}
